package com.efast.dmom.mgmt.service.master;

import java.util.List;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.entity.master.TrBasRouteOperation;
import com.efast.dmom.mgmt.utils.Assist;

public interface TrBasRouteOperationService {
	/**
	 * 获得TrBasRouteOperation数据的总行数,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * 
	 * @param assist
	 * @return
	 */
	long getTrBasRouteOperationRowCount(Assist assist);

	/**
	 * 获得TrBasRouteOperation数据集合,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * 
	 * @param assist
	 * @return
	 */
	List<TrBasRouteOperation> selectTrBasRouteOperation(Assist assist);

	/**
	 * 获得一个TrBasRouteOperation对象,以参数TrBasRouteOperation对象中不为空的属性作为条件进行查询
	 * 
	 * @param obj
	 * @return
	 */
	TrBasRouteOperation selectTrBasRouteOperationByObj(TrBasRouteOperation obj);

	/**
	 * 通过TrBasRouteOperation的id获得TrBasRouteOperation对象
	 * 
	 * @param id
	 * @return
	 */
	TrBasRouteOperation selectTrBasRouteOperationById(Integer id);

	/**
	 * 插入TrBasRouteOperation到数据库,包括null值
	 * 
	 * @param value
	 * @return
	 */
	int insertTrBasRouteOperation(TrBasRouteOperation value);

	/**
	 * 插入TrBasRouteOperation中属性值不为null的数据到数据库
	 * 
	 * @param value
	 * @return
	 */
	int insertNonEmptyTrBasRouteOperation(TrBasRouteOperation value);

	/**
	 * 批量插入TrBasRouteOperation到数据库
	 * 
	 * @param value
	 * @return
	 */
	int insertTrBasRouteOperationByBatch(List<TrBasRouteOperation> value);

	/**
	 * 通过TrBasRouteOperation的id删除TrBasRouteOperation
	 * 
	 * @param id
	 * @return
	 */
	int deleteTrBasRouteOperationById(Integer id);

	/**
	 * 通过辅助工具Assist的条件删除TrBasRouteOperation
	 * 
	 * @param assist
	 * @return
	 */
	int deleteTrBasRouteOperation(Assist assist);

	/**
	 * 通过TrBasRouteOperation的id更新TrBasRouteOperation中的数据,包括null值
	 * 
	 * @param enti
	 * @return
	 */
	int updateTrBasRouteOperationById(TrBasRouteOperation enti);

	/**
	 * 通过辅助工具Assist的条件更新TrBasRouteOperation中的数据,包括null值
	 * 
	 * @param value
	 * @param assist
	 * @return
	 */
	int updateTrBasRouteOperation(TrBasRouteOperation value, Assist assist);

	/**
	 * 通过TrBasRouteOperation的id更新TrBasRouteOperation中属性不为null的数据
	 * 
	 * @param enti
	 * @return
	 */
	int updateNonEmptyTrBasRouteOperationById(TrBasRouteOperation enti);

	/**
	 * 通过辅助工具Assist的条件更新TrBasRouteOperation中属性不为null的数据
	 * 
	 * @param value
	 * @param assist
	 * @return
	 */
	int updateNonEmptyTrBasRouteOperation(TrBasRouteOperation value, Assist assist);
	/**
	 * 保存工艺路径下的工序信息
	 * @param tro
	 */
	ResultBean save(TrBasRouteOperation tro);

}